//
//  PBaseKit.m
//  browserHD
//
//  Created by kevinxuls on 13-5-8.
//  Copyright (c) 2013年 Terry. All rights reserved.
//

#import "PBaseKit.h"
#import <objc/runtime.h>
#import <objc/message.h>

@implementation PBaseKit

@synthesize type = _type;
@synthesize selectors = _selectors;

+ (void)analyseClass:(NSString *)className
{
    const char *cClassName = [className UTF8String];
    
    id theClass = objc_getClass(cClassName);
    
    unsigned int outCount = 0;
    
    Method *m =  class_copyMethodList(theClass, &outCount);
    for (int i = 0; i<outCount; i++) {
        SEL a = method_getName(*(m+i));
        NSString *sn = NSStringFromSelector(a);
        NSLog(@"%@",sn);
    }
}


- (SEL)selectorAtIndex:(NSInteger)index
{
    return nil;
}

@end
